package com.example.clientbwic.service.bwic;

import com.example.clientbwic.entity.Bwic;
import com.example.clientbwic.entity.Client;
import com.example.clientbwic.mapper.BwicMapper;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: 86150
 * @Date: 2024/4/9
 * @Description: com.example.clientbwic.service
 */
@Service
public class BwicServiceImpl implements BwicService {
    @Resource
    BwicMapper bwicMapper;

    @Override
    public List<Bwic> getBwicListByClientId(Long id) {
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append("Client").append(id);
        return bwicMapper.getBwicListByClientId(stringBuilder.toString());
    }

    @Override
    public List<Bwic> getBwicList() {
        return bwicMapper.getBwicList();
    }
}
